#define _CRT_SECURE_NO_WARNINGS 1

#include"Slist.h"

void test()
{
	SLTNode* plist = NULL;
	SListPushFront(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);
	SListPushBack(&plist, 5);
	SListPushFront(&plist, 0);
	SLTPrint(plist);
	SLTNode* pos = SListFind(plist, 3);
	if (pos)
	{
		SListInsertAfter(pos, 30);
	}
	SLTPrint(plist);
	SListEraseAfter(pos);
	SLTPrint(plist);
	SListPopFront(&plist);
	SLTPrint(plist);
	SListPopBack(&plist);
	SLTPrint(plist);
	SListPopFront(&plist);
	SLTPrint(plist);
	SListPopBack(&plist);
	SLTPrint(plist);
	SListPopFront(&plist);
	SLTPrint(plist);
	SListPopFront(&plist);
	SLTPrint(plist);
	SListDestroy(plist);

}

int main()
{
	test();
	return 0;
}